<?php

namespace Admin\Model;

class FriendModel extends Model {
 protected $_validate = array(
array('title','require','标题不能为空'), //默认情况下用正则进行验证
array('url','require','url不能为空'), //默认情况下用正则进行验证
array('url','url','链接不正确'), //默认情况下用正则进行验证
array('des','require','描述不能为空'), //默认情况下用正则进行验证

 	);


 protected $_auto=array(
array('time','time',1,'function'),
array('endtime','func',1,'callback')
 	);
 public function func($time){
 	return strtotime($time);
 }
}